package com.example.demo.vo;



public class ResponseVO {
    private Object data;
    private String message;
    private boolean success;

    private ResponseVO(Object data, String message, boolean success) {
        this.data = data;
        this.message = message;
        this.success = success;
    }

    public Object getData() {
        return this.data;
    }

    public String getMessage() {
        return this.message;
    }

    public boolean getSuccess() {
        return success;
    }
    
    public static ResponseVO buildSuccess(Object data, String message) {
        return new ResponseVO(data, message, true);
    }

    public static ResponseVO buildFailed(String message) {
        return new ResponseVO(null, message, false);
    }
    
}
